﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TeamBuy.AccessWebUI.Components
{
    public partial class Main_ComeSoonCities : System.Web.UI.UserControl
    {
        public bool Enable
        {
            get
            {
                return ddlCity.Enabled;
            }
            set
            {
                ddlCity.Enabled = value;
            }
        }

        public string CityName
        {
            get
            {
                return ddlCity.SelectedItem.Text;
            }
        }

        public int CityID
        {
            get
            {
                return Convert.ToInt32(ddlCity.SelectedValue);
            }
            set
            {
                ddlCity.SelectedValue = value.ToString();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ddlCity_DataBound(object sender, EventArgs e)
        {
            ListItem li = new ListItem("其他", "0");
            ddlCity.Items.Add(li);
        }
    }
}